import React, { Component } from 'react'
import { AppCosumer } from '../../context/AppContext'

export default class Welcome extends Component {
    render() {
        return (
            <AppCosumer>
                {
                    ({username})=>{
                        return `Welcome Back ${username}`    
                    }
                }
            </AppCosumer>
        )
    }
}
